package com.sanda.rongbaoqing.service;

import com.sanda.rongbaoqing.mapper.HelloMapper;
import com.sanda.rongbaoqing.pojo.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public abstract class HelloService {
    @Autowired
    HelloMapper helloMapper;

    public String hello() {
        UserInfo userInfo = helloMapper.getName().get(0);
        return userInfo.getHobby();
    }

    public List<UserInfo> hello_all(){
        return helloMapper.getName();
    }

    public List<UserInfo> getUserInfo() {return helloMapper.getName();}

    public abstract String hello(String name);
}